#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
	char str[] = "WHERETHEREISAWILLTHEREISAWAY";
	printf("%s\n",str);
	printf("%d\n",strlen(str));
	sort(str,str+strlen(str));
	printf("%s",str);
	return 0;
} 

